include ../common.mk
include ../targets.mk

# Dependency on common CPU library
LIBS+= -L../cpu_common -lCommonCPU
LIBDEP=../cpu_common/libCommonCPU.a 
CXXFLAGS += -I../cpu_common

# Target
TARGET     = ./tpSort
OBJS     = tpSort.o

all: ${TARGET}

${TARGET}: ${OBJS}
	${MPICXX} -o $@ ${CXXFLAGS} ${LDFLAGS} ${OBJS} ${LIBS} ${MPI_LIBS}

../cpu_common/libCommonCPU.a:
	${MAKE} -C ../cpu_common

clean:
	${RM} ${OBJS} ${TARGET}

distclean: clean
	${RM} $(DEP) *~ .buildflags

